package pers.qianyu.backup.exception;


import pers.qianyu.core.exception.*;

public enum BackupLambErrorCodeEnum implements ILambErrorCodeEnum {
    BACKUP_FAILED(2001, "备份失败"),
    RESTORE_FAILED(2002, "数据恢复失败"),
    SYS_ERROR(2003, "服务冒烟了，要不然你稍后再试试！！！"),
    RESOURCES_NOT_FOUND(2004, "对不起您请求的资源不存在"),
    FILE_DELETE_FAILED(2005, "文件删除失败");

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    private Integer code;
    private String message;

    BackupLambErrorCodeEnum(Integer code, String message) {
        this.message = message;
        this.code = code;
    }
}
